import React from 'react';
import { Icon } from 'antd';
import cn from 'classnames';
import styles from './index.less';

// 新增按钮
const AddButton = ({ className, children, ...rest }) => (
    <div className={cn(className, styles.add)} {...rest}>
        <Icon type="plus" className={styles.icon} />
        <span>{children}</span>
    </div>
);

export default AddButton;
